//
//  YZMTradeRealModel.h
//  YZMicroStock
//
//  Created by wangminhong on 16/6/1.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <Mantle/Mantle.h>

@interface YZMTradeRealModel : MTLModel<MTLJSONSerializing>

//合约编号, 时间,开盘价,昨收,涨跌值,涨跌幅,最高,最低,总手,最新价,对手买价,对手卖价,买量,卖量

@property (nonatomic, strong) NSString *agreementCode;//合约号
@property (nonatomic, assign) NSTimeInterval time;//时间
@property (nonatomic, assign) double openPrice;//开盘价
@property (nonatomic, assign) double lastClosePrice;//昨收

@property (nonatomic, assign) double changeValue;//涨跌值
@property (nonatomic, assign) double changeRange;//涨跌幅

@property (nonatomic, assign) double highPrice;//最高
@property (nonatomic, assign) double lowPrice;//最低

@property (nonatomic, assign) double dealCount;//总手
@property (nonatomic, assign) double price;//当前价

@property (nonatomic, assign) double buyPrice;//对手买价
@property (nonatomic, assign) double sellPrice;//对手卖价

@property (nonatomic, assign) double buyCount;//买量
@property (nonatomic, assign) double sellCount;//卖量

- (NSString *)formatPrice:(double)price;

@end

@interface YZMHangSengRealModel : YZMTradeRealModel

@end

@interface YZMGoldRealModel : YZMTradeRealModel

@end

@interface YZMCrudeRealModel : YZMTradeRealModel

@end
